﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace MainJumpFleet.SteerBehaviors
{
   public  class KinematicSeek : KinematicMovement
    {

        public override void getSteering(OakEngine.AI.Steering.Oak_Steering steer)
        {
            steer.ForwardVector = target;
            steer.ForwardVector -= location.m_Position;

            if (OakEngine.AI.Tools.OAK_AITools.SquareMagnitude(steer.ForwardVector) > 0)
            {
                steer.ForwardVector = Vector2.Normalize(steer.ForwardVector);
                steer.ForwardVector *= speed;
            }
        }
    }
}
